import {request} from '../utils/util';
const defaultSettings = require('../config/defaultSettings')
const url = {
  login:defaultSettings.appServer+'/AppLoginController/login',
  info: defaultSettings.appServer+'/AppLoginController/info',
  changeProfilePicture:defaultSettings.appServer+'/IrrigationEmpController/changeProfilePicture',
  changePwd:defaultSettings.appServer+'/SysEmpController/changePwd',
  about:defaultSettings.appServer+'/AppExcludeController/queryAbout',
  
}
function login(parameter){
  return request({url:url.login,data:parameter});
}
function getInfo(){
  return request({url:url.info,method:'get'});
}
function changeProfilePicture(parameter){
  return request({url:url.changeProfilePicture,data:parameter});
}
function changePwd(parameter){
  return request({url:url.changePwd,data:parameter});
}

function about(){
  return request({url:url.about,data:{},method:'get'});
}

module.exports = {
  login,getInfo,changeProfilePicture,changePwd,about
}